// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-01

package common

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/common/qrcode/verify"
	"server/app/http/logics/common/upload"
)

// Controller
// 用户接口.
//
// @RoutePrefix("/common")
// @Middleware("authorizer")
type Controller struct{}

// PostQrcodeVerify
// 校验二维码.
//
//  1. 二维码是否存在
//  2. 是否过期
func (o *Controller) PostQrcodeVerify(i iris.Context) {
	logics.Do(i, verify.New)
}

// PostUpload
// 上传图片.
//
// 登录用户(个人/钓场)统一上传接口.
func (o *Controller) PostUpload(i iris.Context) {
	logics.Do(i, upload.New)
}
